package com.yzqp.generator.service;

import com.yzqp.generator.bean.TableColumnInfo;
import com.yzqp.generator.mapper.TableColumnInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 表格列 service
 */
@Service
public class TableColumnInfoService {

    @Resource
    private TableColumnInfoDao _dao;

    /**
     * 查询 表格 列 的信息
     * @param databaseName 数据库名称
     * @param tableName 表格信息
     * @return
     */
    public List<TableColumnInfo> findTableColumnInfo(String databaseName, String tableName){
        return _dao.findTable(databaseName, tableName);
    }
}
